package com.mydomain.debtbook;

public class debtWeight {
	private String weightUnit;
	private double weight;

	public debtWeight() {
		weightUnit = null;

	}

	public debtWeight(String _weightUnit, double _weight) {

		weightUnit = _weightUnit;
		weight = _weight;
	}

	public String getWeightUnit() {

		return weightUnit;
	}

	public double getWeight() {
		return weight;
	}

	public void setWeightUnit(String _weightUnit) {
		weightUnit = _weightUnit;
	}

	public void setWeight(double _weight) {
		weight = _weight;
	}

	public boolean hasWeight() {
		if (weightUnit == null) {
			return false;
		}
		return true;
	}

}
